<html>

<head>

<script>
var fileSystemObject = null;
var TempEnv = null;

function loaded()
{
       fileSystemObject = new ActiveXObject("Scripting.FileSystemObject");
       TempEnv = System.Environment.getEnvironmentVariable("TEMP");
       update();
}

function update()
{
 	var textStream = fileSystemObject.OpenTextFile(TempEnv + "\\tempdata.txt");
	try
    {
         temperature_data.innerHTML = textStream.ReadAll();
    }
    finally
    {
          textStream.Close();
          window.setTimeout(update, 3000);
    }
}

</script>

<style>
	body 
        { 
               margin: 0;
               width: 125px;
               height: 62px;
               font: 'normal 8pt Arial';
               line-height: 12pt;
	       text-align:center;
	}

</style>

</head>

<body onload="loaded()">
<g:background src="background.png">
<span id="temperature_data"></span>
</g:background>
</body>
</html>

